# Copyright (c) 2019 The STE||AR-Group
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

cmake_minimum_required(VERSION 3.3.2 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# Default location is $HPX_ROOT/libs/preprocessor/include
set(preprocessor_headers
  hpx/preprocessor/cat.hpp
  hpx/preprocessor/config.hpp
  hpx/preprocessor/expand.hpp
  hpx/preprocessor/nargs.hpp
  hpx/preprocessor/stringize.hpp
  hpx/preprocessor/strip_parens.hpp
)

# Default location is $HPX_ROOT/libs/preprocessor/include_compatibility
set(preprocessor_compat_headers
  hpx/util/detail/pp/cat.hpp
  hpx/util/detail/pp/config.hpp
  hpx/util/detail/pp/expand.hpp
  hpx/util/detail/pp/nargs.hpp
  hpx/util/detail/pp/stringize.hpp
  hpx/util/detail/pp/strip_parens.hpp
)

# Default location is $HPX_ROOT/libs/preprocessor/src
set(preprocessor_sources
)

include(HPX_AddModule)
add_hpx_module(preprocessor
    DEPRECATION_WARNINGS
    COMPATIBILITY_HEADERS OFF
    INSTALL_BINARIES OFF
    FORCE_LINKING_GEN ON
    SOURCES ${preprocessor_sources}
    HEADERS ${preprocessor_headers}
    COMPAT_HEADERS ${preprocessor_compat_headers}
    DEPENDENCIES hpx_config
    CMAKE_SUBDIRS tests
)
